<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		 onLoad: function () {
			let plugin = requirePlugin('routePlan');
			let key = '7LWBZ-HJE6J-U4LFQ-D2VF5-FZXI6-ETF5I';  //使用在腾讯位置服务申请的key
			let referer = 'cx';   //调用插件的app的名称
			let endPoint = JSON.stringify({  //终点
			  'name': '北京西站',
			  'latitude': 39.894806,
			  'longitude': 116.321592
			});
			uni.navigateTo({
			  url: 'plugin://routePlan/index?key=' + key + '&referer=' + referer + '&endPoint=' + endPoint
			}); 
		 }
	}
</script>

<style>

</style>
